package com.bus.service;

import com.bus.dao.IbusDao;
import com.bus.model.UserTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: wangchen
 * Date: 16-5-30
 * Time: 下午2:51
 * To change this template use File | Settings | File Templates.
 */
@Service
public class BusService {
    @Autowired
    private IbusDao ibusDao;

    public String test(){
        List<UserTest> list =  ibusDao.getNameById("1", "wangc");
        System.out.println("list=="+list);
        for (UserTest user :list){
            System.out.println("user.name..."+user.getName());
            System.out.println("user.getAge..."+user.getAge());
            System.out.println("user.getCreateTime..."+user.getCreateTime());
        }
        System.out.println("test sucess...");
        return null;
    }
}
